#ifndef DIALOGUEMANAGER_H_
#define DIALOGUEMANAGER_H_

#include "Dictionary.h"
#include "KeyedList.h"
#include "Conversation.h"
#include "ConditionalStatement.h"
//each NPC will have his own DialogueManager
class DialogueManager
{
	bool hasSpoken;
	KeyedList<Conversation> * conversationList;
	Conversation * lastConversation;
	ConditionalStatement * firstConversationConditional;
	
	public:
	DialogueManager();
	DialogueManager(char * fileName);
	void LoadDialogueFile(char * fileName);
	char * Speak(Dictionary * dictionary);
	int GetElementType(char * element);
	
	void HandleFirstConditionalTag(char * tag, int pos);
	void HandleConversationTag(char * tag, int pos);
};

#endif /*DIALOGUEMANAGER_H_*/
